package it.asvp.asvp_portal.service.services;

import it.asvp.asvp_portal.data.entity.news.News;

import java.util.List;

public interface NewsService {

    public Long createNews(Long idCurrentAccount,News transientNews) throws Exception;
	
	public void updateNews(Long idCurrentAccount, Long idNewsToUpdate, News transientNews) throws Exception;
	
	public void deleteNews(Long idCurrentAccount, Long idNewsToDelete) throws Exception;
	
	public News getById(Long idNews) throws Exception;
	
	public List<News> getAllNews();
}
